import java.util.Scanner;
public class demo7 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.print("Enter a:");
        int a=input.nextInt();
        System.out.print("Enter b:");
        int b=input.nextInt();
        System.out.print("Enter c:"); 
        int c=input.nextInt();
        int max =0;
        int mid=0;
        int min=0;
        if (a>b & a>c){max=a;}else if(b>a & b>c){
            max=b;
        }else {
            max = c;
        }
        if(a<b & a<c ){min=a;}else if (b<a & b<c){
            min=b;
        }else{
            min=c;
        }
        if(a<b & a>c || a<c &a>c){
            mid=a;
        }else if(b<a & b>c || b>a & b<c){
            mid=b;
        }else{mid=c;
        }
        System.out.println(min+" "+mid+" "+max);
    }
}
